package cn.gov.pbc.gd.credit.vo.report.query;

import java.io.Serializable;

public class ResQueryTotalVo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3248660349507204412L;

	/**
	 * 公司名称
	 */
	private String corpName;
	
	/**
	 * 部门名称
	 */
	private String deptName;
	
	/**
	 * 查询次数
	 */
	private Integer queryCount;
	
	/**
	 * 成功次数
	 */
	private Integer succCount;
	
	/**
	 * 失败次数
	 */
	private Integer failCount;
	
	/**
	 * 成功比例
	 */
	private String succRadio;
	
	/**
	 * 操作人账号
	 */
	private String operatorAccount;

	public String getCorpName() {
		return corpName;
	}

	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public Integer getQueryCount() {
		return queryCount;
	}

	public void setQueryCount(Integer queryCount) {
		this.queryCount = queryCount;
	}

	public Integer getSuccCount() {
		return succCount;
	}

	public void setSuccCount(Integer succCount) {
		this.succCount = succCount;
	}

	public Integer getFailCount() {
		return failCount;
	}

	public void setFailCount(Integer failCount) {
		this.failCount = failCount;
	}

	public String getOperatorAccount() {
		return operatorAccount;
	}

	public void setOperatorAccount(String operatorAccount) {
		this.operatorAccount = operatorAccount;
	}

	public String getSuccRadio() {
		if(queryCount != null && queryCount > 0){
		  Double f = (succCount / queryCount.doubleValue()) * 100;
		  succRadio = String.format("%.2f", f);	 
		}
		return succRadio;
	}

	public void setSuccRadio(String succRadio) {
		this.succRadio = succRadio;
	}
	
}
